<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'userView.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css"
	href="<%=path %>/lib/bootstrap/css/bootstrap.css">

<link rel="stylesheet" type="text/css" href="<%=path %>/stylesheets/theme.css">
<link rel="stylesheet" href="<%=path %>/lib/font-awesome/css/font-awesome.css">

<script src="<%=path %>/lib/jquery-1.7.2.min.js" type="text/javascript"></script>

<!-- Demo page code -->
<script type="text/javascript">
   /* 提交表单  */
	$(function(){
		$("#submit").click(function(){
			$("#tab").submit();
		});
		
		//关联已有试卷
		$("#submit1").click(function(){
			 var pid = $("select[name=paper]").val();
			 //alert(pid);
			 window.location.href="relationExsitPaper?pid=" + pid;
		});
		
		//随机生成试卷
		$("#submit2").click(function(){
			window.location.href="<%=path%>/page/users/addPaper.jsp";
			//var paperType = $("select[name=paper]").val();
			//window.location.href="newUserPaper";
		});
	});
   
</script>

<style type="text/css">
#line-chart {
	height: 300px;
	width: 800px;
	margin: 0px auto;
	margin-top: 1em;
}

.brand {
	font-family: georgia, serif;
}

.brand .first {
	color: #ccc;
	font-style: italic;
}

.brand .second {
	color: #fff;
	font-weight: bold;
}
</style>

<link rel="shortcut icon" href="../assets/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144"
	href="../assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114"
	href="../assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72"
	href="../assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed"
	href="../assets/ico/apple-touch-icon-57-precomposed.png">
</head>
<body>
	<div class="navbar">
		<div class="navbar-inner">
			<ul class="nav pull-right">

				<li><a href="#"
					class="hidden-phone visible-tablet visible-desktop" role="button">Settings</a></li>
				<li id="fat-menu" class="dropdown"><a href="#" role="button"
					class="dropdown-toggle" data-toggle="dropdown"> <i
						class="icon-user"></i> ${backuser.userName } <i class="icon-caret-down"></i>
				</a>

					<ul class="dropdown-menu">
						<li><a tabindex="-1" href="#">My Account</a></li>
						<li class="divider"></li>
						<li><a tabindex="-1" class="visible-phone" href="#">Settings</a></li>
						<li class="divider visible-phone"></li>
						<li><a tabindex="-1" href="sign-in.html">Logout</a></li>
					</ul></li>

			</ul>
			<a class="brand" href="index.html"><span class="first">在线考试</span>
				<span class="second">系统</span></a>
		</div>
	</div>

	<!-- <div class="sidebar-nav">
		<a href="#dashboard-menu" class="nav-header" data-toggle="collapse"><i
			class="icon-dashboard"></i>用户管理<i class="icon-chevron-up"></i></a>
		<ul id="dashboard-menu" class="nav nav-list collapse in">
			<li><a href="listAllUser2">用户列表</a></li>
		</ul>

		<a href="#accounts-menu" class="nav-header" data-toggle="collapse"><i
			class="icon-briefcase"></i>题库管理<i class="icon-chevron-up"></i></a>
		<ul id="accounts-menu" class="nav nav-list collapse">
			<li><a href="listAllTitle">题库详情</a></li>
		</ul>

		<a href="#error-menu" class="nav-header collapsed"
			data-toggle="collapse"><i class="icon-exclamation-sign"></i>试卷管理<i
			class="icon-chevron-up"></i></a>
		<ul id="error-menu" class="nav nav-list collapse">
			<li><a href="addPaper">新增试卷</a></li>
			<li><a href="getPaperList">试卷列表</a></li>
		</ul>

		<a href="#legal-menu" class="nav-header" data-toggle="collapse"><i class="icon-legal"></i>人员管理</a>
        <ul id="legal-menu" class="nav nav-list collapse">
            <li ><a href="page/admin/adminEdit.jsp">新增管理员  </a></li>   
            <li ><a href="adminList">管理员列表</a></li>
        </ul>

	</div> -->



			<div class="content" style="margin-left:0px;">

				<div class="header">

					<h1 class="page-title">${backuser.userName}个人详情</h1>
				</div>

				<%-- <!-- 得到所有的试卷 -->
				<s:action name="getAllPaper" namespace="/" executeResult="true" var="allPaper"/>
                <!-- 主题部分 -->
				<div class="container-fluid">
					<div class="row-fluid">

						<div class="btn-toolbar">
						  <div style="height:50px; width:280px;>
							<s:select list="#allPaper.paperNameList"
									  listKey="paperId"
									  listValue="paperName"
									  name="paper"
									  placeholder="请选择试题类型"
							></s:select>
						  </div>
							<button class="btn btn-primary" id="submit1">
								<i class="icon-save"></i> 
								 关联试卷
							</button>
							
							<button class="btn btn-primary" id="submit2">
								<i class="icon-save"></i> 随机抽提
							</button>
							
                           <!-- <input type="text" name="" value=""/>
							<button class="btn btn-primary" id="submit3">
								<i class="icon-save"></i> 选择类型
							</button> -->							
							<div class="btn-group"></div>
						</div> --%>
						<div class="well">
							<ul class="nav nav-tabs">
								<li class="active"><a onclick="javascript:history.back()" data-toggle="tab">返回试卷列表</a></li>
								<li><a href="getUserPaper_new.action">查看已做试卷</a></li>
							</ul>
							<div id="myTabContent" class="tab-content">
								<div class="tab-pane active in" id="home">
								
							<!-- 修改用户信息的表单  -->
							<form action="" method="post" id="tab">
									<!-- 隐藏域，传递ID -->
									<input type="hidden" name="user.userId" value="<s:property value='user.userId'/>">
									<label>用户名：<s:property value="user.userName"/></label>  
							        <label>密码：<s:property value="user.userPassword"/> </label>  
								    <label>真实姓名：<s:property value="user.userRealName"/></label>
									<label>性别：<s:property value="user.userSex"/></label>
									<label>年龄：<s:property value="user.userAge"/> </label>
									<label>出生年月：<s:property value="user.userDate"/></label>
						    </form>
								</div>
								<div class="tab-pane fade" id="profile">
									<form id="tab2">
										<label>New Password</label> <input type="password"
											class="input-xlarge">
										<div>
											<button class="btn btn-primary">Update</button>
										</div>
									</form>
								</div>
							</div>

						</div>

						<div class="modal small hide fade" id="myModal" tabindex="-1"
							role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal"
									aria-hidden="true">×</button>
								<h3 id="myModalLabel">Delete Confirmation</h3>
							</div>
							<div class="modal-body">

								<p class="error-text">
									<i class="icon-warning-sign modal-icon"></i>Are you sure you
									want to delete the user?
								</p>
							</div>
							<div class="modal-footer">
								<button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
								<button class="btn btn-danger" data-dismiss="modal">Delete</button>
							</div>
						</div>


						<footer>
						<hr>


						<p class="pull-right">
							Collect from <a href="http://www.cssmoban.com/" title="网页模板"
								target="_blank">网页模板</a>
						</p>

						<p>
							&copy; 2012 <a href="#" target="_blank">Portnine</a>
						</p>
						</footer>

					</div>
				</div>
			</div>



			<script src="<%=path %>/lib/bootstrap/js/bootstrap.js"></script>
			<script type="text/javascript">
				$("[rel=tooltip]").tooltip();
				$(function() {
					$('.demo-cancel-click').click(function() {
						return false;
					});
				});
			</script>
</body>
</html>
